<!DOCTYPE html>
<html lang="zh_CN">

<head>
   <#include "../common/header.ftl">
    <script src="/js/plugins/ckeditor/ckeditor.js"></script>

    <script>
        $(function () {

        })
    </script>


</head>

<body>

<div class="container " style="margin-top: 20px">
    <#include "../common/top.ftl">
    <div class="row">
        <div class="col-sm-3">
        <#--设置当前要回显当前菜单,必须在载人菜单前完成设置-->
            <#assign menu = "questionnaire" >
           <#include "../common/menu.ftl">
        </div>
        <div class="col-sm-9">
            <div class="row">
                <div class="col-sm-12">
                    <h1 class="page-head-line">日报管理</h1>
                </div>
            </div>

            <!--高级查询--->
            <form class="form-inline" id="searchForm" action="/questionnaire/list.do" method="post">
                <input type="hidden" id="currentPage" name="currentPage" value="1">
                <div class="form-group">
                    <label>关键字:</label>
                    <input type="number" class="form-control" name="questionnaireId" value="${(qo.questionnaireId)!}"
                           placeholder="请输入题目id(1-8)">
                </div>

                <button type="submit" class="btn btn-primary" id="dailyBtn">
                    <span class="glyphicon glyphicon-search"></span> 查询
                </button>
            </form>


            <table class="table table-striped table-hover">
                <tr>
                    <th>序号</th>
                    <th>用户名</th>
                    <th>问卷题目</th>
                    <th>调查结果</th>
                </tr>
                <!--如果result不为空就迭代输出-->
                    <#if result??>
                        <#list result.list as entity>
                        <tr>
                            <td>${entity_index+1}</td>
                            <td>${(entity.user.nickName)!}</td>
                            <td>${(entity.name)!}</td>
                            <td>${(entity.answer.name)!}</td>
                        </tr>
                        </#list>
                    </#if>
            </table>
            <!--分页-->
            <#include "../common/page.ftl">
        </div>
    </div>
</div>

<script>

</script>

</body>

</html>